<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="version" content="Alidao v1.0 20151012">
    <meta http-equiv="Cache-Control" content="must-revalidate,no-cache">
    <meta http-equiv="x-dns-prefetch-control" content="on" />
    <link type="text/css" rel="stylesheet" href="${ctx}/static/healthassess/css/common.css" />
    <link rel="stylesheet" href="${ctx}/static/healthassess/css/list.css">
    <link rel="stylesheet" href="${ctx}/static/healthassess/css/health.css">
    <style>
        *{margin:0;padding:0;}
        html,body{width:100%;height:100%;background-color:#f8f8f8;}
        .no-report{position:absolute;top:35%;left:25%;width:50%;text-align:center;}
        .no-report img{width:16%;margin-bottom:10px;}
        .no-report p{font-size:16px;color:#999;font-family:'MicrosoftYaHei';}
    </style>
</head>
<body>
<div class="container health">

    <div class="result" id="result">
        <c:choose>
            <c:when test="${fn:length(assessment)>0}">
                <c:forEach items="${assessment}" var="entry">
                    ${entry.value.result}
                </c:forEach>
            </c:when>
            <c:otherwise>
                <section class="no-report">
                    <img src="${ctx}/theme/h5/images/tip1@3x.png"  alt="">
                    <p>暂无健康评估</p>
                </section>
            </c:otherwise>
        </c:choose>

    </div>

</div>
</body>
<script src="${ctx}/static/healthassess/js/jquery-2.1.4.min.js"></script>

<script>
    $(function() {
        $("#result").show();
    });
</script>
</html>